<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">产品管理</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      每日还款明细
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
        <div class="col-sm-3" ng-controller="DatepickerDemoCtrl">
          <label><font><font>日期:</font></font></label>
          <p class="input-group">
            <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="dayrepaymentData.dt"
              is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
            <span class="input-group-btn">
                <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
              </span>
          </p>
        </div>
         <div class="col-sm-2" ng-controller="DatepickerDemoCtrl">
          <label><font><font>产品类型:</font></font></label>
          <select class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" ng-model="dayrepaymentData.ProductGroup" name="">
              <option value="0">全部</option>   
              <option value="1">新手标</option>
              <option value="18">一月定期产品</option>
              <option value="20">三月定期产品</option>
              <option value="19">六月定期产品</option>
            </select>
        </div>
        <div class="form-group pull-in clearfix">
          <div class="col-sm-1">
            <button class="btn btn-info btn-addon" style="margin-top:25px" ng-if='!graybtn' ng-click="query()">查询</button>
            <button class="btn btn-light btn-addon" style="margin-top:25px" ng-if='graybtn'>查询</button>
          </div>
        </div>        
        <a href="{{gourl}}" target="_blank" ng-click="export()" class="btn btn-info btn-addon pull-right" ng-if="dayrepaymentList.length>0">导出</a> 
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>              
            <th style="min-width: 110px">借款人Id</th>
            <th style="min-width: 110px">借款人姓名</th>
            <th style="min-width: 101px">年化总利率</th>
            <th style="min-width: 100px">基本利率</th>
            <th style="min-width: 100px">加息利率</th>
            <th style="min-width: 100px">产品编码</th>
            <th style="min-width: 100px">产品名称</th>
            <th style="min-width: 100px">上架日期</th>
            <th style="min-width: 100px">满标日期</th>
            <th style="min-width: 100px">募集金额</th>
            <th style="min-width: 120px">实际满标金额</th>
            <th style="min-width: 100px">还款日期</th>
            <th style="min-width: 120px">本期还款本金</th>
            <th style="min-width: 120px">本期还款利息</th>
            <th style="min-width: 110px">加息券利息</th>
            <th style="min-width: 80px">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="dayrepaymentList=='' || dayrepaymentList==null">
            <td colspan="9">当前无任何数据</td>
          </tr>
          <tr ng-if="dayrepaymentList!=''" ng-repeat="obj in dayrepaymentList">
            <td ng-bind="obj.UserId"></td>
            <td ng-bind="obj.FullName"></td>
            <td ng-bind="obj.AnnualRateOfYear"></td>
            <td ng-bind="obj.BaseAnnualRate"></td>
            <td ng-bind="obj.ShowRate"></td>
            <td ng-bind="obj.ProductCode"></td>
            <td ng-bind="obj.ProductName"></td>
            <td ng-bind="obj.FirstOnlineTime | date : 'yyyy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="obj.FullTime | date : 'yyyy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="obj.LoanPrice"></td>
            <td ng-bind="obj.RealPrice"></td>
            <td ng-bind="obj.RepayDate | date : 'yyyy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="obj.RepayPrincipal"></td>
            <td ng-bind="obj.RepayInterest"></td>
            <td ng-bind="obj.RepayPlusInterest"></td>
            <td><button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="dayrepaymentDetail(obj.RepaymentItemId)">还款明细</button></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{dayrepaymentData.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="ListCount+'条数据'"></span></span>
  </div>
